package user

import (
	"context"

	"gf-demo/api/user/v1"
	"gf-demo/internal/dao"
	"gf-demo/internal/model/do"
)

func (c *ControllerV1) GetListUser(ctx context.Context, req *v1.GetListUserReq) (res *v1.GetListUserRes, err error) {
	res = &v1.GetListUserRes{}
	err = dao.User.Ctx(ctx).Where(do.User{
		Age:    req.Age,
        Status: req.Status,
	}).Scan(&res.List)
	return
}
